package game.resources;

/**
 *	@(#)ResourceType.java
 *
 *	The <code>ResourceType</code> enum lists all available resources.
 *
 *	@author Grzegorz Kobiela
 *	@version 1.0 2007/8/2
 */
public enum ResourceType
{
	WOOD, STONE, FISH, GRAIN, OLIVES, SHEEP, DYE, GOLD, PEARLS, WINE;

	/**
	 *	Returns true if the resource is a food.
	 *	@return true if the resource is a food
	 */
	public boolean isFood() {
		return !isLux() && (ordinal() > 1);
	}

	/**
	 *	Returns true if the resource is a luxury good.
	 *	@return true if the resource is a luxury good
	 */
	public boolean isLux() {
		return (ordinal() > 5);
	}
}